package com.beamfield.enums;

/**
 * 工序
 */
public enum  ProcessEnum {
    /**
     *未开始
     */
    WGS(0,"未开始"),
    /**
     *钢筋绑扎
     */
    GJBZ(1,"钢筋绑扎"),

    MBAZ(2,"模板安装"),

    HNT(3,"混凝土"),

    CMSG(4,"拆模施工"),

    YHSG(5,"养护施工"),

    YZL(6,"预张拉"),

    CZL(7,"初张拉"),

    YCL(8,"移存梁"),

    ZZL(9,"终张拉"),

    QSYJ(10,"切丝压浆"),

    FM(11,"封锚"),

    FS(12, "防水"),

    JSSG(13,"架梁施工"),

    FINAL(14,"已架设");

    private Integer type;
    private String name;

    ProcessEnum(Integer type, String name){
        this.type = type;
        this.name = name;
    }

    public Integer  getType() {
        return this.type;
    }
    public String getName(){
        return this.name;
    }

    public String getName(Integer type){
        for(ProcessEnum p : ProcessEnum.values()){
            if(type.equals(p.type)){
                return p.name;
            }
        }
        return "";
    }
}
